using UnityEngine;


/// <summary>
/// 处理 Int数据类型的拓展
/// </summary>
public static class IntEx
{

    public static int Range(int min, int max)
    {
        return Random.Range(min, max+1);
    }

    //是否在概率内
    public static bool isInRange(this int x)
    {
        if(x < 0)return false;
        return Random.Range(0, 101) <= x;
    }
}